﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/Site.master" %>

<%@ Register TagPrefix="dc" TagName="alphalinks" Src="~/_controls/alphalinksvb.ascx" %>
<script runat="server">
    Private Sub Page_PreRender()
        If Alphalinks.Letter = "All" Then
            Users.DataSource = Membership.GetAllUsers()
        Else
            Users.DataSource = Membership.FindUsersByName(Alphalinks.Letter + "%")
        End If
        Users.DataBind()
    End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <!-- #include file="_nav.aspx -->
    <table class="webparts">
        <tr>
            <th>
                Users by Name
            </th>
        </tr>
        <tr>
            <td class="details" valign="top">
                <!-- #include file="_nav3.aspx -->
                User Name filter:&nbsp;&nbsp;&nbsp;
                <dc:alphalinks runat="server" ID="Alphalinks" />
                <br />
                <br />
                <asp:GridView runat="server" ID="Users" AutoGenerateColumns="false" CssClass="list"
                    AlternatingRowStyle-CssClass="odd">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                User Name</HeaderTemplate>
                            <ItemTemplate>
                                <a href="edit_user.aspx?username=<%# Eval("UserName") %>">
                                    <%# Eval("UserName") %></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="email" HeaderText="Email" />
                        <asp:BoundField DataField="comment" HeaderText="Comments" />
                        <asp:BoundField DataField="creationdate" HeaderText="Creation Date" />
                        <asp:BoundField DataField="lastlogindate" HeaderText="Last Login Date" />
                        <asp:BoundField DataField="lastactivitydate" HeaderText="Last Activity Date" />
                        <asp:BoundField DataField="isapproved" HeaderText="Is Active" />
                        <asp:BoundField DataField="isonline" HeaderText="Is Online" />
                        <asp:BoundField DataField="islockedout" HeaderText="Is Locked Out" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
